package com.weijie.relaxed.net;

import com.android.volley.Response.ErrorListener;
import com.android.volley.VolleyError;


public abstract class StringListener {

	public com.android.volley.Response.Listener<String> mListener = new com.android.volley.Response.Listener<String>() {
		@Override
		public void onResponse(String response) {
			StringListener.this.onResponse(response);
		}
	};

	public ErrorListener mErrorListener = new ErrorListener() {
		@Override
		public void onErrorResponse(VolleyError error) {
			error.printStackTrace();
			StringListener.this.onErrorResponse(error);
		}
	};

	public abstract void onResponse(String response);

	public abstract void onErrorResponse(VolleyError error);
	
}
